package com.niiwoo.civet.user.service.duboo;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.user.enums.LibraLoanLimitEnum;
import com.niiwoo.civet.user.enums.ProductTypeEnum;
import com.niiwoo.civet.user.service.LibraLoanLimitDubboService;
import com.niiwoo.civet.user.service.local.LibraLoanLimitService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

/**
 * Created by dell on 2018/4/21.
 * Description：civet-app
 */
@Slf4j
@Service(version = "1.0.0")
public class LibraLoanLimitDubboServiceImpl implements LibraLoanLimitDubboService{

    @Autowired
    private LibraLoanLimitService libraLoanLimitService;


    @Override
    public int addLibraLoanLimit(String userId, LibraLoanLimitEnum libraLoanLimitEnum, ProductTypeEnum productTypeEnum, Integer limitDays, Date hitDate) {
        return libraLoanLimitService.addLibraLoanLimit(userId, libraLoanLimitEnum, productTypeEnum, limitDays, hitDate);
    }
}
